package com.wanmei.mapper;

import com.wanmei.pojo.Category;

import java.util.List;

public interface CategoryMapper {

    List<Category> getALLbyParentId(int parentId);

    int deleteByPrimaryKey(Integer cid);

    int insert(Category record);

    int insertSelective(Category record);
    int countCname(String cname);

    Category selectByPrimaryKey(Integer cid);

    int updateParentsIdByCid(int cid);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> selectAll();
    List<Category> selectByCid(Integer cid);
}